package so.sao.code.service.domain.entity;

import lombok.Data;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

import javax.persistence.Entity;
import javax.persistence.EntityListeners;

/**
 * 域名分配到企业的关系表
 *
 * @author cuijunhua
 */
@Entity
@Data
@EntityListeners(AuditingEntityListener.class)
public class EnterpriseDomain extends BaseEntity {

    private static final long serialVersionUID = -7729628823728261685L;

    private Long eseId = 0L;
    private Long domainId = 0L;
    private String subDomain = "";
    private Integer status = 0;
    private Boolean deleted = false;

    public EnterpriseDomain() {
    }

    public EnterpriseDomain(Long eseId, Long domainId) {
        this.eseId = eseId;
        this.domainId = domainId;
    }


}
